package info.wangyuan.agent.controller.admin;


import info.wangyuan.agent.utils.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 健康检查
 *
 * @author Albert
 * @since 2025-08-25 20:54:12
 */
@RestController
@CrossOrigin(origins = "*")
@RequestMapping("/health")
public class HealthController {

    /**
     * 测试服务是否正常
     */
    @GetMapping
    public Result<String> test() {
        return Result.success("AgentWY 后端服务已启动");
    }
}
